package com.guli.mall.wms.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.guli.common.constant.WareConstant;
import lombok.Data;

/**
 * 采购信息
 * 
 * @author 罗俊华
 * @email 1007052116@qq.com
 * @date 2020-09-29 21:37:28
 */
@Data
@TableName("wms_purchase")
public class PurchaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;


	/**
	 * 
	 */
	@TableId
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;

	/**
	 * 
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long assigneeId;

	/**
	 * 
	 */
	private String assigneeName;

	/**
	 * 
	 */
	private String phone;

	/**
	 * 
	 */
	private Integer priority;

	/**
	 * 采购单状态[0新建，1已分配，2正在采购，3已完成，4采购失败]
	 */

	private Integer status;
//	@JSONField(serialzeFeatures= SerializerFeature.WriteEnumUsingToString)
//	private WareConstant.PurchaseStatusEnum status;

	/**
	 * 
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long wareId;

	/**
	 * 
	 */
	private BigDecimal amount;

	/**
	 * 
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	/**
	 * 
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

}
